import { CfgStorage } from "../../cfg";

export const get = (keyPath: string) => {
  const v = CfgStorage.getInstance().get(keyPath);
  if (v === undefined) throw new Error("deformed key");
  return v;
};

export const set = (keyPath: string, newToken: string) => {
  return CfgStorage.getInstance().set(keyPath, newToken);
};
